Create an asset category
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets-category \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "some string"
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets-category"
payload = { "title": "some string" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'some string'})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets-category', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL not found"
}{
"message": "Internal Server Error"
}Assets Category
Create an asset category
POST
/
assets-category
Create an asset category
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets-category \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "some string"
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets-category"
payload = { "title": "some string" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'some string'})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets-category', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL not found"
}{
"message": "Internal Server Error"
}Authorizations
Body
application/json
The body is of type object.
Response
Successful response
Related topics
Delete asset category by IDRetrieve asset category by IDUpdate asset category by IDRetrieve asset categories listAsset ReportsWas this page helpful?
⌘I