Preskoči na sadržaj

Attach the signed-in user to a company they can prove

POST
/organizations/claim-company

Verifies the one-time code sent to the company’s registered email and attaches the current user to that organization, creating it when it does not exist yet. Only available to a user who is not yet a member of any organization.

object
companyId
required
string
>= 9 characters <= 9 characters /^\d+$/
claimCode
required
string
>= 6 characters <= 6 characters /^\d+$/

OK

Any of:
object
ok
required
organizationId
required
string
organizationName
required
string

401

One of:
object
defined
required
code
required
Allowed value: UNAUTHORIZED
status
required
Allowed value: 401
message
required
string
default: Missing user session. Please log in!
data

403

One of:
object
defined
required
code
required
Allowed value: FORBIDDEN
status
required
Allowed value: 403
message
required
string
default: You do not have enough permission to perform this action.
data

422

One of:
object
defined
required
code
required
Allowed value: INPUT_VALIDATION_FAILED
status
required
Allowed value: 422
message
required
string
default: INPUT_VALIDATION_FAILED
data