How can we help?

Searching:

0 results found

Profiles/Post

POST /odata/Profiles
 

Description

Creates a profile.

See the following for request and response details:

 

Request ‒ Profiles/Post
Property Type Description Mandatory
name String Name of the profile
allowedGroups List String List of the allowed groups IDs
notAllowedGroups List String List of the unallowed groups IDs
devicesBlackList List String List of devices that are unallowed

 

Example JSON Profiles/Post Request

curl –location –request POST ‘https://api.dev.axonize.com/odata/profiles’ \

–header ‘Accept: application/json, text/plain, */*’ \

–header ‘Content-Type: application/json’ \

–data-raw ‘{“name”:”TestProfile”,”deviceBlackList”:[],”allowedGroups”:[“5ceb89b1e3b0ca2ee412f236″],”notAllowedGroups”:[]}’
 

Response -Profiles/Post
Property Type Description Mandatory
Id String The profile unique ID

 

Example JSON Profiles/Post Response

{

“@odata.context”: “https://10.9.0.104/odata/$metadata#Profiles/$entity”,

“name”: “Only Asia”,

“allowedGroups”: [],

“notAllowedGroups”: [],

“deviceBlackList”: [],

“id”: “5e00c3ade3b0ca3154631dd0”,

“appId”: “289a7624-c590-4b4c-b15a-7801d8902ce9”,

“createDate”: “2019-12-23T13:39:57.7843062Z”,

“createUser”: null,

“updateDate”: “2019-12-23T13:39:57.7843062Z”,

“updateUser”: null

}