Upload
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
Query parameters
accountIdentifierstringRequired
Account Identifier for the Entity.
orgIdentifierstringOptional
Organization Identifier for the Entity.
projectIdentifierstringOptional
Project Identifier for the Entity.
Body
anyOptional
Responses
201
Created
application/json
file_pathstringOptional
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
post/repos/{repo_identifier}/uploads
POST /code/api/v1/repos/{repo_identifier}/uploads?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/octet-stream
Accept: */*
{
"file_path": "text"
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
file_refstringRequired
Query parameters
accountIdentifierstringRequired
Account Identifier for the Entity.
orgIdentifierstringOptional
Organization Identifier for the Entity.
projectIdentifierstringOptional
Project Identifier for the Entity.
Responses
200
OK
No content
307
Temporary Redirect
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get/repos/{repo_identifier}/uploads/{file_ref}
GET /code/api/v1/repos/{repo_identifier}/uploads/{file_ref}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?