Skip to content

Commit a9ebfec

Browse files
Merge pull request #109 from jbrule/jbrule-sca-token-fix
Update sca.py
2 parents 9cfdca8 + be77149 commit a9ebfec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

veracode_api_py/sca.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def get_agent_token(self,workspace_guid: UUID,agent_guid: UUID,token_id: UUID):
9090
return APIHelper()._rest_request(uri, "GET" )
9191

9292
def regenerate_agent_token(self,workspace_guid: UUID, agent_guid: UUID):
93-
uri = self.sca_base_url + '/{}/agents/{}/tokens:regenerate'.format(workspace_guid,agent_guid)
93+
uri = self.sca_base_url + '/{}/agents/{}/token:regenerate'.format(workspace_guid,agent_guid)
9494
return APIHelper()._rest_request(uri,"POST")
9595

9696
def revoke_agent_token(self,workspace_guid: UUID, agent_guid: UUID, token_id: UUID):
@@ -260,4 +260,4 @@ def add_annotation(self, app_guid: UUID, action: str, comment: str, annotation_t
260260

261261
payload_json = json.dumps(payload)
262262

263-
return APIHelper()._rest_request(self.entity_base_uri+"/{}/sca_annotations".format(app_guid),"POST",body=payload_json)
263+
return APIHelper()._rest_request(self.entity_base_uri+"/{}/sca_annotations".format(app_guid),"POST",body=payload_json)

0 commit comments

Comments
 (0)