Create a project in a team.
API key access: full.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
application/jsonCreate a project in a team.
API key access: full.
op*"createProject""createProject"id*stringA new id you choose: prj_ then 4 to 40 lowercase letters, digits, dashes or underscores.
teamId*stringname*stringnamespace*stringThe project's slug, used in service addresses: lowercase letters, digits and dashes, unique in the team.
description?stringDone. Always ok: true, and some operations add more, such as a new API key or a join command. A warning comes with a change that went through but won't fully take effect yet, such as more replicas than the servers have room for.
application/jsoncurl -X POST 'https://your-pyo.example.com/api/v1/ops' \
-H 'Content-Type: application/json' \
-d '{
"id": "prj_8kq2x7ad",
"name": "Shop",
"namespace": "shop",
"op": "createProject",
"teamId": "team_8kq2x7ad"
}'{}