artifacts

Versions Prepare

POST
Prepares a new version for an artifact, returning the URL and form data to upload the updated file.

Request

This endpoint expects an object.
id
stringRequired
The ID of the artifact to prepare a new version for.

Response

This endpoint returns an object
form_data
list of objects
The POST policy form data.
url
string
The URL that the file's data should be uploaded to.
POST
1curl -X POST https://api.devrev.ai/artifacts.versions.prepare \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "ARTIFACT-12345"
6}'
200
Successful
1{
2 "form_data": [
3 {
4 "key": "key",
5 "value": "value"
6 }
7 ],
8 "url": "url"
9}