Access Control
Operations related to Access Control, the mechanism to restrict object and record access on the platform for authorized users.
The id of the user
The api token targeted by the endpoint
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/users/{user_id}/api_tokens/{api_token_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"name": "text",
"expiration_date": 0,
"value": "text",
"last_used_ts": 0,
"creation_date": 0,
"id": "text"
}
}The id of the user
The api token targeted by the endpoint
000Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/users/{user_id}/api_tokens/{api_token_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"status": "ok",
"data": {
"name": "text",
"expiration_date": 0,
"value": "text",
"last_used_ts": 0,
"creation_date": 0,
"id": "text"
}
}The id of the user
The api token targeted by the endpoint
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/users/{user_id}/api_tokens/{api_token_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}The id of the user
The organisation in which to search for the user
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/users/{user_id}?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"type": "USER",
"created_ts": 0,
"first_name": "text",
"last_connection_ts": 0,
"last_password_update": 0,
"email": "text",
"created_by": "text",
"last_modified_by": "text",
"organisation_id": "text",
"last_name": "text",
"community_id": "text",
"id": "text",
"last_modified_ts": 0,
"locale": "text"
}
}The id of the user
The organisation in which to search for the user
Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/users/{user_id}?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 110
{
"type": "USER",
"first_name": "text",
"email": "text",
"organisation_id": "text",
"last_name": "text",
"locale": "text"
}{
"status": "ok",
"data": {
"type": "USER",
"created_ts": 0,
"first_name": "text",
"last_connection_ts": 0,
"last_password_update": 0,
"email": "text",
"created_by": "text",
"last_modified_by": "text",
"organisation_id": "text",
"last_name": "text",
"community_id": "text",
"id": "text",
"last_modified_ts": 0,
"locale": "text"
}
}The id of the user
The organisation in which to search for the user
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/users/{user_id}?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}The id of the user
The id of the key to delete
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/users/{user_id}/message_authentication_keys/{key_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}The id of the user
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/users/{user_id}/message_authentication_keys HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"max_results": 1,
"count": 1,
"status": "ok",
"total": 1,
"first_result": 1,
"data": [
{
"user_id": "text",
"creation_ts": 0,
"key_id": "text",
"scheme": "HMAC_SHA256",
"secret_key": "text",
"expiration_ts": 0,
"last_used_ts": 0,
"id": "text"
}
]
}The id of the user
000Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/users/{user_id}/message_authentication_keys HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"key_id": "text",
"scheme": "HMAC_SHA256",
"expiration_ts": 0
}{
"status": "ok",
"data": {
"user_id": "text",
"creation_ts": 0,
"key_id": "text",
"scheme": "HMAC_SHA256",
"secret_key": "text",
"expiration_ts": 0,
"last_used_ts": 0,
"id": "text"
}
}User ID
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/users/{user_id}/user_roles HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"status": "ok",
"max_results": 1,
"total": 1,
"data": [
{
"role": "SUPER_ADMIN",
"created_ts": 0,
"expiration_ts": 0,
"organisation_id": "text",
"created_by": "text",
"id": "text"
}
],
"first_result": 1
}User ID
00Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/users/{user_id}/user_roles HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"role": "SUPER_ADMIN",
"organisation_id": "text"
}{
"status": "ok",
"data": {
"role": "SUPER_ADMIN",
"created_ts": 0,
"expiration_ts": 0,
"organisation_id": "text",
"created_by": "text",
"id": "text"
}
}The organisation of the users for whom api tokens will be retrieved
Should include or not tokens that are expired
Match the token value
Fields used to order the result
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/organisations/{organisation_id}/api_tokens HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"data": [
{
"user": {
"type": "USER",
"created_ts": 0,
"first_name": "text",
"last_connection_ts": 0,
"last_password_update": 0,
"email": "text",
"created_by": "text",
"last_modified_by": "text",
"organisation_id": "text",
"last_name": "text",
"community_id": "text",
"id": "text",
"last_modified_ts": 0,
"locale": "text"
},
"api_token": {
"name": "text",
"expiration_date": 0,
"value": "text",
"last_used_ts": 0,
"creation_date": 0,
"id": "text"
},
"organisation": {
"last_modified_ts": 0,
"community_id": "text",
"market_id": "text",
"id": "text",
"technical_name": "text",
"archived": false,
"administrator_id": "text",
"name": "text",
"created_by": "text",
"created_ts": 0,
"last_modified_by": "text",
"type": "CUSTOMER",
"enabled_features": [
{
"feature_name": "text",
"enable_on": "text"
}
]
}
}
],
"total": 1,
"max_results": 1,
"status": "ok",
"first_result": 1,
"count": 1
}The communitiy of the users for whom api tokens will be retrieved
Should include or not tokens that are expired
Match the token value
Fields used to order the result
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/communities/{community_id}/api_tokens HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"data": [
{
"user": {
"type": "USER",
"created_ts": 0,
"first_name": "text",
"last_connection_ts": 0,
"last_password_update": 0,
"email": "text",
"created_by": "text",
"last_modified_by": "text",
"organisation_id": "text",
"last_name": "text",
"community_id": "text",
"id": "text",
"last_modified_ts": 0,
"locale": "text"
},
"api_token": {
"name": "text",
"expiration_date": 0,
"value": "text",
"last_used_ts": 0,
"creation_date": 0,
"id": "text"
},
"organisation": {
"last_modified_ts": 0,
"community_id": "text",
"market_id": "text",
"id": "text",
"technical_name": "text",
"archived": false,
"administrator_id": "text",
"name": "text",
"created_by": "text",
"created_ts": 0,
"last_modified_by": "text",
"type": "CUSTOMER",
"enabled_features": [
{
"feature_name": "text",
"enable_on": "text"
}
]
}
}
],
"first_result": 1,
"total": 1,
"status": "ok",
"count": 1,
"max_results": 1
}The community in which the search is performed
The organisation to which the user belong
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/community/{community_id}/users.user_roles HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"total": 1,
"max_results": 1,
"count": 1,
"first_result": 1,
"data": [
{}
]
}The organisation in which to perform the action
ids of the user to search
keywords to be used for the search
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/users HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"data": [
{}
],
"max_results": 1,
"first_result": 1,
"count": 1,
"total": 1,
"status": "ok"
}The organisation in which to perform the action
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/users HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 131
{
"type": "USER",
"organisation_id": "text",
"locale": "text",
"role": "SUPER_ADMIN",
"email": "text",
"first_name": "text",
"last_name": "text"
}{
"status": "ok",
"data": {
"type": "USER",
"created_ts": 0,
"first_name": "text",
"last_connection_ts": 0,
"last_password_update": 0,
"email": "text",
"created_by": "text",
"last_modified_by": "text",
"organisation_id": "text",
"last_name": "text",
"community_id": "text",
"id": "text",
"last_modified_ts": 0,
"locale": "text"
}
}The user owning the api token
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/users/{user_id}/api_tokens HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"max_results": 1,
"first_result": 1,
"total": 1,
"data": [
{
"name": "text",
"expiration_date": 0,
"value": "text",
"last_used_ts": 0,
"creation_date": 0,
"id": "text"
}
],
"status": "ok"
}The user owning the api token
000Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/users/{user_id}/api_tokens HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"status": "ok",
"data": {
"name": "text",
"expiration_date": 0,
"value": "text",
"last_used_ts": 0,
"creation_date": 0,
"id": "text"
}
}User ID
User role ID
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/users/{user_id}/user_roles/{role_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Last updated
Was this helpful?