Publish destinations
Description
If you want to publish a project to one or more destinations through the API use the two endpoints described below.
Get destinations
Get a projects publish destinations
GET:
api.vev.design/project/destinations?projectId=:projectId
Headers:
Name/type | Description |
---|---|
x-vev-key | Your API key |
Content-Type | application/json |
Query parameters:
Name/type | Description |
---|---|
projectId | string |
Response
{
"checked": true,
"key": "dev-audun",
"url": "placeholder.for/published/project"
},
Example
curl -X GET --location "api.vev.design/project/destinations?projectId=<projectId>" \
-H "x-vev-key: <your_vev_key>\
-H "accept: application/json" \
Publish to destinations
To start a publish towards a publish destination use the key
in the results above.
POST:
api.vev.design/project/publish?projectId=:projectId&destinations=:destionationKey
Headers:
Name/type | Description |
---|---|
x-vev-key | Your API key |
Content-Type | application/json |
Query parameters:
Name/type | Description |
---|---|
projectId | string |
destinations | string |
Example
curl -X POST --location "api.vev.design/project/publish?projectId=<projectId>&destinations=<destinationKey>" \
-H "x-vev-key: <your_vev_key>\
-H "accept: application/json" \