cURL
curl --request POST \ --url https://app.laravel.cloud/api/applications \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "repository": "<string>", "name": "<string>", "region": "us-east-2" }'
{ "data": { "id": "<string>", "type": "applications", "attributes": { "name": "<string>", "slug": "<string>", "region": "us-east-2", "tenancy_type": "shared", "slack_channel": "<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>" } } } } }
Create a new application.
The Bearer Token generated on the Cloud UI.
3 - 40
us-east-2
us-east-1
eu-central-1
eu-west-1
eu-west-2
ap-southeast-1
ap-southeast-2
ApplicationResource
Show child attributes
Was this page helpful?