Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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/{idserviceId}/bind-organization?userId={userId}&organizationId={organizationId}

Parameters

Parameter

Description

Parameter Type

Sample request body

...

serviceId

Service IId

Path

userId

User Id

Query string

organizationId

Organization Id

Query string

Returns

On success, 200 Ok

...

Example

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