Creating a publisher
Function
Creating a publisher
URI
POST /v1/{domain_id}/publisher/create
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
domain_id |
Yes |
String |
TenantID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. Can be obtained by calling the IAM API for obtaining the user token (the value of X-Subject-Token in the response header). |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
No |
String |
Name |
user_id |
No |
String |
Specifies the user ID. |
description |
No |
String |
Description |
logo_url |
No |
String |
Icon URL |
website |
No |
String |
Web page URL |
support_url |
No |
String |
Address |
source_url |
No |
String |
Address |
en_name |
No |
String |
Full name |
publisher_unique_id |
No |
String |
Unique ID |
Response Parameters
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
Error Message |
error_code |
String |
Error code. |
Example Requests
POST https://{endpoint}/v1/ce8df55870164338a72d7e828a966a2a/publisher/create { "name" : "aaa", "en_name" : "aaa", "website" : "", "support_url" : "aaa@aa.com", "source_url" : "", "description" : "", "logo_url" : "" }
Example Responses
Status code: 200
Indicates whether the invoking is successful.
true
Status Codes
Status Code |
Description |
---|---|
200 |
Indicates whether the invoking is successful. |
400 |
Bad request |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.