CCC API v8.4.0.0

<back to all web services

CreateServiceUser

The following routes are available for this service:
POST/api/services/{ServiceGuid}/usersCreate a new user for a service. ServiceUserGroupGuid / ServiceUserGroupType - if only ServiceUserGroupGuid is specified then the group identified by that guid is used; if only ServiceUserGroupType is specified then the default group for that type is used; if both ServiceUserGroupGuid and ServiceUserGroupType are specified, the type of the group identified by the ServiceUserGroupGuid has to match the ServiceUserGroupType; if neither ServiceUserGroupGuid nor ServiceUserGroupType are specified, the user will be assigned the services' default package for users.
CreateServiceUser Parameters:
NameParameterData TypeRequiredDescription
ServiceGuidpathGuidYes
EmailAddressbodyStringYes
PasswordbodyStringYes
FirstNamebodyStringYes
LastNamebodyStringYes
PreRegisterbodyBooleanNoIndicates if the user should be pre-registered on the service. Defaults to false.

Allowable Values

  • true
  • false
SkipRegConfirmationbodyBooleanNoIndicate if the user should be required to complete the registration page or not when first logging in. Defaults to false.

Allowable Values

  • true
  • false
ServiceUserGroupGuidbodyGuidNoIdentify the group the service user will be added to.
ServiceUserGroupTypebodyStringNoIdentify the group the service user will be added to.

Allowable Values

  • Guest
  • Professional
LanguagebodyStringNoLanguage code conforms to ISO 639-1. Supported languages must be two-letters and in lowercase.

Allowable Values

  • en
  • fr
  • de
  • es
  • ja
  • nl
  • zh
EnableCampaignsbodyBooleanNo

Allowable Values

  • true
  • false
EnableESignaturesbodyBooleanNo

Allowable Values

  • true
  • false
DefaultSecurebodyServiceUserDefaultSecureNo

Allowable Values

  • Never
  • BasedOnKeywords
  • Always
BlacklistModebodyServiceUserBlacklistModeNo

Allowable Values

  • Never
  • SecureOnly
  • SecureAndBasic
CreateServiceUserResponse Parameters:
NameParameterData TypeRequiredDescription
ServiceUserGuidbodyGuidNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/services/{ServiceGuid}/users HTTP/1.1 
Host: api.secure-messaging.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{
  "serviceGuid": "00000000000000000000000000000000",
  "emailAddress": "String",
  "password": "String",
  "firstName": "String",
  "lastName": "String",
  "preRegister": false,
  "skipRegConfirmation": false,
  "serviceUserGroupGuid": "00000000000000000000000000000000",
  "serviceUserGroupType": "String",
  "language": "String",
  "enableCampaigns": false,
  "enableESignatures": false,
  "defaultSecure": "String",
  "blacklistMode": "String"
}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{
  "serviceUserGuid": "00000000000000000000000000000000",
  "responseStatus": {
    "errorCode": "String",
    "message": "String",
    "stackTrace": "String",
    "errors": [
      {
        "errorCode": "String",
        "fieldName": "String",
        "message": "String",
        "meta": {
          "String": "String"
        }
      }
    ],
    "meta": {
      "String": "String"
    }
  }
}