Rivier/ Reference/ workspace

Ask the owner of a business to connect it to this platform

post/connected-businesses

Ask the owner of a business to connect it to this platform: name it, give their address and the scopes the platform asks for. They are mailed an invitation, accept it in their own organisation and choose what the platform may do. With a test key it is a test business at once: connected with every scope asked, no mail and no owner, reached only by the test key. the platform hears platform.business.connected, .declined, .expired, .granted, .paused, .resumed and .ended.

Before you call

Credential
Authorization: Bearer $KEY
Scope
workspace:admin
Graphql
Mutation.workspaceConnectedBusinessCreate
Sdk
workspace.connectedBusiness.create
Cli
workspace connected business create

Request bodyapplication/json, required

  • namestringrequired
    At most 120 characters.
  • emailstring (email)required
    At most 254 characters.
  • scopeslist of stringrequired
  • refstring
    At most 120 characters.
  • languagestring
    At most 12 characters.
  • noticesstring
    One of: platform, business. Default: platform.
  • feeCeilingobject
    • bpsintegerrequired
      At least 1. At most 5000.
  • returnUrlstring (uri)
    At most 500 characters.
  • mailboolean
    Default: true.
  • metadataobject

Responses

  • 201application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown