Menu
Upsert Environment Alias
Create or update an environment alias
PUT
/spaces/{spaceId}/environment_aliases/{aliasId}Use it in a workflow
- Add a step and choose the Contentful connector.
- Pick the Upsert Environment Alias action (under Contentful Content Management API).
- Fill in the fields below, then reference the result from later steps as
{{upsertEnvironmentAlias.response.data}}.
Request
Path parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"environment": {
"sys": {
"id": "string",
"linkType": "Environment",
"type": "Link"
}
}
}
Response
Returns 200 with an object. Read it in later steps with {{upsertEnvironmentAlias.response.data.<field>}}.
{
"environment": {
"sys": {
"id": "string",
"linkType": "Environment",
"type": "Link"
}
},
"sys": {
"id": "string",
"type": "string",
"space": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"createdBy": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"version": 0,
"environment": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"updatedBy": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"updatedAt": "2025-01-01T00:00:00Z"
}
}
Need more? See the Contentful guide for connection setup and behaviour shared by every action.
Was this page helpful?