does not allow owner to create custom domain without permissions
POST /api/v1/domains/
Parameters
| Name |
Description |
|
id
|
id
|
|
is_primary
|
primary domain?
|
|
url
|
domain url
|
Request
Headers
Route
POST /api/v1/domains/
Body
{"id":null,"url":"402fc4abcd95.com"}
cURL
curl "http://localhost:3000/api/v1/domains/" -d '{"id":null,"url":"402fc4abcd95.com"}' -X POST \
-H "Accept: application/json" \
-H "X-Api-Token: hr12hK9Sssp5QLFoKg6Z36wAGLMjqdXkmQ" \
-H "X-Api-Email: user-678@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
401 Unauthorized
Body
{
"success": false,
"error": "Unauthorized",
"status": 401,
"message": "You can't do that!"
}