AIBOM
Create a new AI-BOM
Required permissions
View Organization (org.read)
Authorizations
Path parameters
org_idstring · uuidRequired
Org ID
Query parameters
versionstringRequiredExample:
Requested API version
2021-06-04
Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
dataone ofRequired
or
Responses
202
The request has been accepted for processing, but processing has not yet completed.
application/vnd.api+json
400
Bad Request: A parameter provided as a part of the request was invalid.
application/vnd.api+json
404
Not Found: The resource being operated on could not be found.
application/vnd.api+json
500
Internal Server Error: An error was encountered while attempting to process the request.
application/vnd.api+json
post
POST /rest/orgs/{org_id}/ai_boms HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 72
{
"data": {
"attributes": {
"bundle_id": "text"
},
"type": "ai_bom_file_bundle"
}
}
{
"data": {
"attributes": {
"status": "processing"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"relationships": {
"ai_bom": {
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "text"
}
}
},
"type": "ai_bom_job"
},
"jsonapi": {
"version": "1.0"
},
"links": {
"first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
"last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
"next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
}
}
Get a AI-BOM.
Required permissions
View Organization (org.read)
Authorizations
Path parameters
org_idstring · uuidRequired
Org ID
ai_bom_idstring · uuidRequired
The ai_bom id
Query parameters
versionstringRequiredExample:
Requested API version
2021-06-04
Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
200
Successful API response with a single resource
application/vnd.api+json
404
Not Found: The resource being operated on could not be found.
application/vnd.api+json
500
Internal Server Error: An error was encountered while attempting to process the request.
application/vnd.api+json
get
GET /rest/orgs/{org_id}/ai_boms/{ai_bom_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "ai_bom"
},
"jsonapi": {
"version": "1.0"
},
"links": {
"first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
"last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
"next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
}
}
Get an AI-BOM job status
Required permissions
View Organization (org.read)
Authorizations
Path parameters
org_idstring · uuidRequired
Org ID
job_idstring · uuidRequired
The job id
Query parameters
versionstringRequiredExample:
Requested API version
2021-06-04
Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
200
Successful API response with a single resource
application/vnd.api+json
303
Redirect to another resource after async processing.
application/vnd.api+json
404
Not Found: The resource being operated on could not be found.
application/vnd.api+json
500
Internal Server Error: An error was encountered while attempting to process the request.
application/vnd.api+json
get
GET /rest/orgs/{org_id}/ai_bom_jobs/{job_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"attributes": {
"status": "processing"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"relationships": {
"ai_bom": {
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "text"
}
}
},
"type": "ai_bom_job"
},
"jsonapi": {
"version": "1.0"
},
"links": {
"first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
"last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
"next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
}
}
Last updated
Was this helpful?