Create
POSThttps://api.addresszen.com/v1/keys/:key/configs
Create a config
Request
Path Parameters
key API Keyrequired
Query Parameters
user_token User Token
- application/json
Body
required
name stringrequired
Possible values: <= 32
A unique name to identify the configuration payload
payload stringrequired
Possible values: <= 4096
A serialised payload of up to 4096
characters
Responses
- 200
- 400
- 401
Success
- application/json
- Schema
- Example (from schema)
Schema
result objectrequired
code int32required
Possible values: [2000
]
message stringrequired
Possible values: [Success
]
{
"result": {
"updatedAt": "2016-01-21T17:14:49.971Z",
"createdAt": "2016-01-21T17:14:49.971Z",
"name": "woocommerce",
"payload": "{\n \"removeOrganisation\": false\n}\n"
},
"code": 2000,
"message": "Success"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
code int32required
API Response Code. Non 2xxx
code indicates a failure. This code will provide a more specific reason when a failure occurs and facilitates debugging.
message stringrequired
Human readable error message supplied with every error response.
errors object[]
{
"code": 0,
"message": "string",
"errors": [
{
"message": "should have required property 'type'",
"path": ".query.type",
"errorCode": "required.openapi.validation"
}
]
}
Unauthorized Request
- application/json
- Schema
- Example (from schema)
Schema
code int32required
API Response Code. Non 2xxx
code indicates a failure. This code will provide a more specific reason when a failure occurs and facilitates debugging.
message stringrequired
Human readable error message supplied with every error response.
{
"code": 0,
"message": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://api.addresszen.com/v1/keys/:key/configs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "woocommerce",
"payload": "{\n \"removeOrganisation\": false\n}\n"
}'
ResponseClear