Create a new subscription for a User within a Project
POST/v1/organizations/:organizationId/projects/:projectId/platforms/android/subscriptions
Create a new subscription for a User within a Project
Request
Path Parameters
organizationId stringrequired
ID of the organization
projectId stringrequired
ID of the project
- application/json
Body
required
sku stringrequired
Possible values: <= 50 characters
, Value must match regular expression /^[a-z0-9][a-zA-Z0-9_\.]*$/
The unique identifier of the subscription.
name stringrequired
Possible values: <= 50 characters
The name of the subscription.
description stringrequired
Possible values: <= 100 characters
The description of the subscription.
legacy booleanrequired
Indicates if the subscription is legacy.
Responses
- 201
The subscription has been successfully created.
- application/json
- Schema
- Example (from schema)
Schema
id stringrequired
The unique identifier of the subscription.
sku stringrequired
The stock keeping unit to avoid conflict with subscriptionId and id. It is unique per project.
name stringrequired
The name of the subscription.
description stringrequired
The description of the subscription.
legacy booleanrequired
Indicates if the subscription is legacy.
{
"id": "abc123",
"sku": "sku123",
"name": "Basic Plan",
"description": "This is a basic subscription plan.",
"legacy": true
}
Loading...