Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Binds an organization to a service

Description

This method is used to bind an organization to a service.

Package Details

Interface

IServiceManager

Syntax

BindOrganization(int userId, int serviceId, int organizationId)

Returns

Nothing

API Endpoint

Implementation Notes

Internal users must not be associated with any organizations.

POST

/api/v1/services/{id}/bind-organization

Parameters

Parameter

Description

Parameter Type

id

Service id

Integer

userId

User id

Integer

organizationId

OrganizationId

Integer

Returns

On success, 200 Ok

On error, 400 Bad Request

On authorization error, 403 Forbidden

Example

int id = 2;
int userId = 2757;
int organizationId = 5059;
await _serviceManager.BindOrganization(userId, id, organizationId);

  • No labels