Ir al contenido

OrganizationsCrea un tenant dentro de la organización

Crea un tenant dentro de la organización

Ver como Markdown
POST
/api/v1/organizations/{id}/tenants
curl --request POST \
--url https://api.novafe.example/api/v1/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/tenants \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "rnc": "example", "legalName": "example", "tradeName": "example" }'

Crea un tenant nuevo y lo asigna a la organización en el mismo paso (self-serve): lo hace el owner/admin de la organización, sujeto al tope de tenants del plan. Para asociar un tenant preexistente (huérfano o de otra organización) sigue existiendo Task<IActionResult> OrganizationsController.AssignTenant(Guid id, Guid tenantId, CancellationToken ct), reservado al operador.

Autenticación: requiere una API key válida (header X-API-Key).

id
required
string format: uuid
object
rnc
required
string
legalName
required
string
tradeName
required
null | string
Examplegenerated
{
"rnc": "example",
"legalName": "example",
"tradeName": "example"
}

Created

Bad Request

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
errors
object
key
additional properties
Array<string>

Forbidden

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string

Conflict

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string