For the complete documentation index, see llms.txt. This page is also available as Markdown.

Access Control

Operations related to Access Control, the mechanism to restrict object and record access on the platform for authorized users.

Get ApiToken

get
/users/{user_id}/api_tokens/{api_token_id}
Path parameters
user_idinteger · int64Required

The id of the user

api_token_idinteger · int64Required

The api token targeted by the endpoint

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/users/{user_id}/api_tokens/{api_token_id}
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"
  }
}

Update Api token

put
/users/{user_id}/api_tokens/{api_token_id}
Path parameters
user_idinteger · int64Required

The id of the user

api_token_idinteger · int64Required

The api token targeted by the endpoint

Body
namestringOptional
expiration_dateinteger · int64Read-onlyRequiredDefault: 0
valuestringRead-onlyRequired
last_used_tsinteger · int64Read-onlyOptionalDefault: 0
creation_dateinteger · int64Read-onlyRequiredDefault: 0
idstringRead-onlyRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/users/{user_id}/api_tokens/{api_token_id}
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"
  }
}

Delete Api token

delete
/users/{user_id}/api_tokens/{api_token_id}
Path parameters
user_idinteger · int64Required

The id of the user

api_token_idinteger · int64Required

The api token targeted by the endpoint

Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/users/{user_id}/api_tokens/{api_token_id}
DELETE /v1/users/{user_id}/api_tokens/{api_token_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Find user

get
/users/{user_id}
Path parameters
user_idinteger · int64Required

The id of the user

Query parameters
organisation_idinteger · int64Required

The organisation in which to search for the user

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/users/{user_id}
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"
  }
}

Update user

put
/users/{user_id}
Path parameters
user_idinteger · int64Required

The id of the user

Query parameters
organisation_idinteger · int64Required

The organisation in which to search for the user

Body
orand
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/users/{user_id}
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"
  }
}

Delete user

delete
/users/{user_id}
Path parameters
user_idinteger · int64Required

The id of the user

Query parameters
organisation_idinteger · int64Required

The organisation in which to search for the user

Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/users/{user_id}
DELETE /v1/users/{user_id}?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Delete Message Authentication Key

delete
/users/{user_id}/message_authentication_keys/{key_id}
Path parameters
user_idinteger · int64Required

The id of the user

key_idinteger · int64Required

The id of the key to delete

Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/users/{user_id}/message_authentication_keys/{key_id}
DELETE /v1/users/{user_id}/message_authentication_keys/{key_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Find Message Authentication Keys

get
/users/{user_id}/message_authentication_keys
Path parameters
user_idinteger · int64Required

The id of the user

Responses
200

Success !

application/json
max_resultsintegerRequired
countintegerRequired
statusstring · enumRequiredPossible values:
totalintegerRequired
first_resultintegerRequired
get/users/{user_id}/message_authentication_keys
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"
    }
  ]
}

Create new Message Authentication Key

post
/users/{user_id}/message_authentication_keys
Path parameters
user_idinteger · int64Required

The id of the user

Body
user_idstringRead-onlyRequired
creation_tsinteger · int64Read-onlyRequiredDefault: 0
key_idstringRequired
schemestring · enumRequiredPossible values:
secret_keystringRead-onlyRequired
expiration_tsinteger · int64OptionalDefault: 0
last_used_tsinteger · int64Read-onlyOptionalDefault: 0
idstringRead-onlyRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/users/{user_id}/message_authentication_keys
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"
  }
}

Search user roles

get
/users/{user_id}/user_roles
Path parameters
user_idstringRequired

User ID

Responses
200

Success !

application/json
countintegerRequired
statusstring · enumRequiredPossible values:
max_resultsintegerRequired
totalintegerRequired
first_resultintegerRequired
get/users/{user_id}/user_roles
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
}

Create new user role

post
/users/{user_id}/user_roles
Path parameters
user_idstringRequired

User ID

Body
rolestring · enumRequiredPossible values:
created_tsinteger · int64Read-onlyOptionalDefault: 0
expiration_tsinteger · int64Read-onlyOptionalDefault: 0
organisation_idstringRequired
created_bystringRead-onlyOptional
idstringRead-onlyRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/users/{user_id}/user_roles
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"
  }
}

Find api tokens of all users of a given organisation

get
/organisations/{organisation_id}/api_tokens
Path parameters
organisation_idstringRequired

The organisation of the users for whom api tokens will be retrieved

Query parameters
include_expired_tokensbooleanOptional

Should include or not tokens that are expired

keywordsstringOptional

Match the token value

order_bystring[]Optional

Fields used to order the result

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
totalintegerRequired
max_resultsintegerRequired
statusstring · enumRequiredPossible values:
first_resultintegerRequired
countintegerRequired
get/organisations/{organisation_id}/api_tokens
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
}

Find api tokens of all users of a given community

get
/communities/{community_id}/api_tokens
Path parameters
community_idstringRequired

The communitiy of the users for whom api tokens will be retrieved

Query parameters
include_expired_tokensbooleanOptional

Should include or not tokens that are expired

keywordsstringOptional

Match the token value

order_bystring[]Optional

Fields used to order the result

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
first_resultintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
countintegerRequired
max_resultsintegerRequired
get/communities/{community_id}/api_tokens
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
}

Search user roles within a community

get
/community/{community_id}/users.user_roles
Path parameters
community_idstringRequired

The community in which the search is performed

Query parameters
organisation_idstringOptional

The organisation to which the user belong

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
totalintegerRequired
max_resultsintegerRequired
countintegerRequired
first_resultintegerRequired
dataobject · MemberWithUserRoleResource[]Required
get/community/{community_id}/users.user_roles
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": [
    {}
  ]
}

Find users

get
/users
Query parameters
organisation_idinteger · int64Optional

The organisation in which to perform the action

user_idsstring[]Optional

ids of the user to search

keywordsstringOptional

keywords to be used for the search

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
max_resultsintegerRequired
first_resultintegerRequired
countintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
get/users
GET /v1/users HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "data": [
    {}
  ],
  "max_results": 1,
  "first_result": 1,
  "count": 1,
  "total": 1,
  "status": "ok"
}

Create new user

post
/users
Query parameters
organisation_idinteger · int64Optional

The organisation in which to perform the action

Body
orand
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/users
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"
  }
}

Find api tokens

get
/users/{user_id}/api_tokens
Path parameters
user_idinteger · int64Required

The user owning the api token

Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
countintegerRequired
max_resultsintegerRequired
first_resultintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
get/users/{user_id}/api_tokens
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"
}

Create user api token

post
/users/{user_id}/api_tokens
Path parameters
user_idinteger · int64Required

The user owning the api token

Body
namestringOptional
expiration_dateinteger · int64Read-onlyRequiredDefault: 0
valuestringRead-onlyRequired
last_used_tsinteger · int64Read-onlyOptionalDefault: 0
creation_dateinteger · int64Read-onlyRequiredDefault: 0
idstringRead-onlyRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/users/{user_id}/api_tokens
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"
  }
}

Delete a role

delete
/users/{user_id}/user_roles/{role_id}
Path parameters
user_idstringRequired

User ID

role_idstringRequired

User role ID

Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/users/{user_id}/user_roles/{role_id}
DELETE /v1/users/{user_id}/user_roles/{role_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Last updated

Was this helpful?