POST /apiv2/identities/linkIdentitiesToCompanies

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
links[] Array No

One or more identities to provision access for

links[].identityId Integer No

The ID in MachShip of an identity owned by your Organisation. Either the IdentityId, IdentityPublicKey or IdentityClaimName must be provided

links[].testModeSetting Integer No

Indicator of a MachShip user's settings in relation to viewing "test" data in the live system - eg test consignments, manifests, accounts0 = Disabled, 1 = Enabled, 2 = UserIsInTestMode

Possible values:

  • 0
  • 1
  • 2
links[].companyId Integer Yes

The ID in MachShip of a company within your organisation

links[].roles[] Array Yes

One ore more role IDs to assign the identity

links[].identityPublicKey String No

The "public key" of an identity from another organisation (who has been linked to your organisation). Either the IdentityId, IdentityPublicKey or IdentityClaimName must be provided

links[].identityClaim String No

The "identity claim" (usually email) of an identity from another organisation (who has been linked to your organisation). Either the IdentityId, IdentityPublicKey or IdentityClaimName must be provided

links[].identityLinkType Integer No

0 = Unknown, 1 = IdentityId, 2 = IdentityPublicKey, 3 = IdentityClaimName

Possible values:

  • 0
  • 1
  • 2
  • 3

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.