Trendsic Platform Service

<back to all web services

WorkerEnableAccessRequest

Requires Authentication
Required role:Administrator
The following routes are available for this service:
POST,OPTIONS/v1/worker/enable-access
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class WorkerEnableAccessRequest
            Public Overridable Property ContactId As Integer
            Public Overridable Property IsCrewLead As Boolean
        End Class

        Public Partial Class WorkerEnableAccessResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Success As Boolean
            Public Overridable Property AlreadyEnabled As Boolean
            Public Overridable Property Username As String
            Public Overridable Property TempPassword As String
            Public Overridable Property InviteEmailedTo As String
            Public Overridable Property Message As String
        End Class
    End Namespace
End Namespace

VB.NET WorkerEnableAccessRequest DTOs

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

HTTP + CSV

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

POST /v1/worker/enable-access HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ContactId":0,"IsCrewLead":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Success":false,"AlreadyEnabled":false,"Username":"String","TempPassword":"String","InviteEmailedTo":"String","Message":"String"}