Skip to main content
POST
/
application
/
{applicationId}
/
deploymentRestriction
Create an application deployment restriction
curl --request POST \
  --url https://api.qovery.com/application/{applicationId}/deploymentRestriction \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "mode": "MATCH",
  "type": "PATH",
  "value": "application1/src/"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "mode": "MATCH",
  "type": "PATH",
  "value": "application1/src/"
}

Authorizations

Authorization
string
header
required

Token API are generated by Qovery to manage machine to machine interaction and do not have a TTL. Prefix your token with "Token ". Curl Example: curl https://console.qovery.com/organization -H "Authorization: Token $qovery_token"

Path Parameters

applicationId
string<uuid>
required

Application ID

Body

application/json
mode
enum<string>
required

Match mode will rebuild app only if specified items are updated. Exclude mode will not rebuild app if specified items are updated.

Available options:
EXCLUDE,
MATCH
Example:

"MATCH"

type
enum<string>
required
Available options:
PATH
Example:

"PATH"

value
string
required

For PATH restrictions, the value must not start with /

Example:

"application1/src/"

Response

Added an environment variable

id
string<uuid>
required
created_at
string<date-time>
required
mode
enum<string>
required

Match mode will rebuild app only if specified items are updated. Exclude mode will not rebuild app if specified items are updated.

Available options:
EXCLUDE,
MATCH
Example:

"MATCH"

type
enum<string>
required
Available options:
PATH
Example:

"PATH"

value
string
required

For PATH restrictions, the value must not start with /

Example:

"application1/src/"

updated_at
string<date-time>