Tenants API
- production
- staging
- Authentication
- Bearer · JWT
- Contact
- authn@masmovil.com
About this API
This is the API for authn-tenants Authn-tenants is a sub-module of Authn that covers all tenants operations outside authn-admin members. Authn-tenants is an API designed to be used from outside. It will let cableoperadores users to create, update and delete tenants; and everything is simplified as posible.
Resources 1
- Tenants 5 endpoints
API for managing tenants CRUD operations
Tenants API
- production
- staging
- Authentication
- Bearer · JWT
- Contact
- authn@masmovil.com
About this API
This is the API for authn-tenants Authn-tenants is a sub-module of Authn that covers all tenants operations outside authn-admin members. Authn-tenants is an API designed to be used from outside. It will let cableoperadores users to create, update and delete tenants; and everything is simplified as posible.
Resources 1
- Tenants 5 endpoints
API for managing tenants CRUD operations
Tenants
GET /tenants
/tenants Retrieves all tenants througth an public endpoint. The request doesn't need a JWT to work
Query parameters
bitmaskstringFiltering tenants by a valid bitmask
Responses
OK
-
tenant_idinteger -
position_of_bitinteger -
orgstring -
namestring -
iamstring -
tierinteger
Invalid request
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Tenants
POST /tenants
/tenants Authenticated with a bearer token in the Authorization header Authentication
It creates a new Tenant in database. It should responde an id of the tenant created
Request body application/json Required
Tenant to add
-
orgstring (uuid) Required -
namestring Required
Responses
item created
-
idintegerInternal id
invalid input, object invalid
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
tenant already exists
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Internal Server Error
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Tenants
GET /tenants/{tenantID}
/tenants /{tenantID} It retrieves a single tenant by it's id. This operation is public and passing a JWT is not mandatory
Path parameters
tenantIDintegerRequired
Responses
OK
-
tenant_idinteger -
position_of_bitinteger -
orgstring -
namestring -
iamstring -
tierinteger
Invalid tenant id
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Tenant not found
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Internal Server Error
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Tenants
PUT /tenants/{tenantID}
/tenants /{tenantID} Authenticated with a bearer token in the Authorization header Authentication
Update the name or/and the org of a tenant.
Path parameters
tenantIDintegerRequired
Request body application/json Required
-
orgstring (uuid) Required -
namestring Required
Responses
OK
-
tenant_idinteger -
position_of_bitinteger -
orgstring -
namestring -
iamstring -
tierinteger
Invalid tenant
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Tenant not found
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Internal Server Error
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Tenants
DELETE /tenants/{tenantID}
/tenants /{tenantID} Authenticated with a bearer token in the Authorization header Authentication
Delete tenant from database by it's id
Path parameters
tenantIDintegerRequired
Responses
OK
No body.
Invalid tenant
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Tenant not found
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry
Internal Server Error
-
idstring RequiredUnique identifier of error
-
statusinteger RequiredStatus code of the response
-
msgstringFinal user message
-
componentMsgstringTechnical message
-
sentryCodestringUnique identifier to use in sentry