Trendsic Platform Service

<back to all web services

CorrectiveActionStatusRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/safety/actions/{CorrectiveActionID}/status
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;

namespace CRM.AgencyPlatform.API.Internal
{
    public partial class CorrectiveAction
    {
        public virtual int CorrectiveActionID { get; set; }
        public virtual Guid? BranchId { get; set; }
        public virtual int? SafetyIncidentID { get; set; }
        public virtual string Description { get; set; }
        public virtual string Owner { get; set; }
        public virtual DateTime? DueDate { get; set; }
        public virtual string Status { get; set; }
        public virtual string Priority { get; set; }
        public virtual DateTime? CompletedAt { get; set; }
        public virtual string IncidentNo { get; set; }
        public virtual string IncidentTitle { get; set; }
        public virtual string CreatedBy { get; set; }
        public virtual DateTime? CreatedAt { get; set; }
        public virtual DateTime? UpdatedAt { get; set; }
    }

    public partial class CorrectiveActionListResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual List<CorrectiveAction> Actions { get; set; } = [];
    }

    public partial class CorrectiveActionStatusRequest
    {
        public virtual int CorrectiveActionID { get; set; }
        public virtual string Status { get; set; }
    }

}

C# CorrectiveActionStatusRequest DTOs

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

HTTP + JSV

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

POST /v1/safety/actions/{CorrectiveActionID}/status HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CorrectiveActionID: 0,
	Status: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Actions: 
	[
		{
			CorrectiveActionID: 0,
			BranchId: 00000000000000000000000000000000,
			SafetyIncidentID: 0,
			Description: String,
			Owner: String,
			DueDate: 0001-01-01,
			Status: String,
			Priority: String,
			CompletedAt: 0001-01-01,
			IncidentNo: String,
			IncidentTitle: String,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01
		}
	]
}