PUT v1/SurveyGroups/{surveyGroupId}/AssignDirectory

User roles allowed to make this request: DomainAdministrator PowerUser LocalDomainManager GlobalDomainManager

Permissions required to make this request: SurveyGroupAssignment.Write SurveyGroupAssignment.Read SurveyGroup.Read

Assign directory user to survey group

Request Information

URI Parameters

NameDescriptionTypeAdditional information
surveyGroupId

integer

Required

Body Parameters

DirectoryIdentityModel
NameDescriptionTypeAdditional information
TenantId

Tenant id

globally unique identifier

None.

ObjectId

Object id

globally unique identifier

None.

ObjectType

Object type

AadObjectType

None.

Request Formats

application/json, text/json

Sample:
{
  "TenantId": "0801f6bc-0ea9-43a9-b9e8-16f2397ec783",
  "ObjectId": "e9bed639-22bb-48eb-a697-437f0a444917",
  "ObjectType": 0
}

application/xml, text/xml

Sample:
<DirectoryIdentityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models">
  <ObjectId>e9bed639-22bb-48eb-a697-437f0a444917</ObjectId>
  <ObjectType>Unknown</ObjectType>
  <TenantId>0801f6bc-0ea9-43a9-b9e8-16f2397ec783</TenantId>
</DirectoryIdentityModel>

application/x-www-form-urlencoded

Sample:
TenantId=Guid&ObjectId=Guid&ObjectType=Unknown

multipart/form-data

Sample:

Sample not available.

Response Information

Resource Description

Response Message

SurveyGroupDirectoryAssignmentModel
NameDescriptionTypeAdditional information
SurveyGroupId

Survey group id

integer

None.

TenantId

Tenant id

globally unique identifier

None.

ObjectId

Object id

globally unique identifier

None.

ObjectType

Object type

AadObjectType

None.

DateAdded

Creation date

date

None.

Response Formats

application/json, text/json

Sample:
{
  "SurveyGroupId": 1,
  "TenantId": "2f243a11-3573-4238-a7e6-476d6e45920b",
  "ObjectId": "28b146bb-c6a3-47f4-8a0f-b1361ce3c7d2",
  "ObjectType": 0,
  "DateAdded": "2024-05-18T20:40:41.6065645+00:00"
}

application/xml, text/xml

Sample:
<SurveyGroupDirectoryAssignmentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models">
  <DateAdded>2024-05-18T20:40:41.6065645+00:00</DateAdded>
  <ObjectId>28b146bb-c6a3-47f4-8a0f-b1361ce3c7d2</ObjectId>
  <ObjectType>Unknown</ObjectType>
  <SurveyGroupId>1</SurveyGroupId>
  <TenantId>2f243a11-3573-4238-a7e6-476d6e45920b</TenantId>
</SurveyGroupDirectoryAssignmentModel>