Skip to main content
POST
/
projects
/
{id}
/
services
Add service to project
curl --request POST \
  --url https://api.sevalla.com/v3/projects/{id}/services \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "service_id": "fb5e5168-4281-4bec-94c5-0d1584e9e657",
  "service_type": "app"
}
'
{
  "message": "Service added to project"
}

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required

Project identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

Body

application/json
service_id
string<uuid>
required

Identifier of the service to add to the project

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

service_type
enum<string>
required

Type of service to add. app - application. database - database. pipeline - deployment pipeline (also moves all stage apps into the project). object-storage - object storage bucket.

Available options:
app,
database,
pipeline,
object-storage
Example:

"app"

Response

Default Response

message
string
required

Confirmation message

Example:

"Service added to project"