Brackets
Creates brackets for a specific order by its unique identifier. If the order is not found, a 404 error is raised.
Args: order_id (str): The unique identifier of the order to create brackets for.
Returns: dict: A response indicating the success or failure of the operation.
Raises: HTTPException: If the order is not found, a 404 error is raised.
^[^/]+$Successful response
Authentication error
Validation error
POST /v3/brackets/ HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 83
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"name": "text",
"order_id": "text"
}{
"bracket_id": "text",
"image_id": null,
"is_uploaded": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"name": "text",
"order_id": null,
"upload_url": null
}Fetch brackets for a specific order by its unique identifier. If the order is not found, a 404 error is raised.
Returns: dict: A response indicating the success or failure of the operation.
Raises: HTTPException: If the order is not found, a 404 error is raised.
Successful response
Authentication error
Not found
GET /v3/brackets/{bracket_id} HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Accept: */*
{
"bracket_id": "text",
"image_id": null,
"is_uploaded": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"name": "text",
"order_id": null
}Deletes brackets for a specific order by its unique identifier. If the order is not found, a 404 error is raised.
Returns: dict: A response indicating the success or failure of the operation.
Raises: HTTPException: If the order is not found, a 404 error is raised.
Successful response
Authentication error
Not found
DELETE /v3/brackets/{bracket_id} HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?