platformCreate
Create a platform. The platformCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: product:write
For a complete list of input attributes see the PlatformAttributes type
mutation platformCreate ($attributes: PlatformAttributes!) {
platformCreate (attributes: $attributes) {
errors
platform {
checkoutValidationEnabled
code
id
name
provisioningEnabled
webhookAuthToken
webhookSigningKey
webhookUrl
}
}
}
ArgumentsLink to Arguments section
{
"attributes": {
"name": "",
"code": "",
"provisioningEnabled": true,
"checkoutValidationEnabled": true,
"webhookUrl": "",
"webhookAuthToken": "",
"webhookSigningKey": ""
}
}
| Name | Type | Description |
|---|---|---|
| attributes | PlatformAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| platform | Platform |