cURL
curl --request PATCH \ --url https://cloud.laravel.com/api/applications/{application} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'name=<string>' \ --form 'avatar=<string>' \ --form 'slug=<string>' \ --form 'default_environment_id=<string>' \ --form 'repository=<string>' \ --form 'slack_channel=<string>' \ --form avatar.0='@example-file' \ --form avatar.1='@example-file'
{ "data": { "id": "<string>", "type": "applications", "attributes": { "name": "<string>", "slug": "<string>", "region": "us-east-2", "slack_channel": "<string>", "avatar_url": "<string>", "created_at": "2023-11-07T05:31:56Z", "repository": { "full_name": "<string>", "default_branch": "<string>" } }, "relationships": { "repository": { "data": { "type": "repositories", "id": "<string>" } }, "organization": { "data": { "type": "organizations", "id": "<string>" } }, "environments": { "data": [ { "type": "environments", "id": "<string>" } ] }, "deployments": { "data": [ { "type": "deployments", "id": "<string>" } ] }, "defaultEnvironment": { "data": { "type": "environments", "id": "<string>" } } } }, "included": [ { "id": "<string>", "type": "repositories", "attributes": { "name": "<string>" } } ] }
Update an application.
The Bearer Token generated on the Cloud UI.
The application identifier
3 - 40
3072
3
ApplicationResource
Show child attributes
Was this page helpful?