Help Center> Blockchain Service> API Reference> Examples> Example 3: Inviting Tenants to Join a Consortium
Updated on 2022-05-25 GMT+08:00

Example 3: Inviting Tenants to Join a Consortium

Scenario

This section describes how to invite tenants to join a consortium by calling an API.

Related APIs of Other Services

None

Inviting Tenants to Join a Consortium

  • URI format

    POST /v2/{project_id}/members/invitations

  • Example request

    POST https://{bcs_endpoint}/ v2/{project_id}/members/invitations

    Obtain the value of {bcs_endpoint} from Regions and Endpoints.

    Body:

    {
      "bcs_id": "ba0fc16d-c752-9ac4-7a43-7a84443e0a06",
      "channel_name": "channel",
      "invitor_username": "paas_bcs_c00218797_02",
      "invited_userinfo": [
        {
          "invited_username": "paas_bcs_bwx705565_02"
        }
      ]
    }
  • Example response

    If the operation is successful, the returned value is empty.