Mercedes.Agency.Orchestration.API

<back to all web services

UpdateAgencyMulesoftQueueState

AgencyMulesoftManagement
Requires Authentication
The following routes are available for this service:
POST/v1/UpdateAgencyMulesoftQueueStateUpdate agency mulesoft queue state
import Foundation
import ServiceStack

public class UpdateAgencyMulesoftQueueState : UpdateAgencyMulesoftQueue, IGet
{
    required public init(){ super.init() }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
    }
}

public class UpdateAgencyMulesoftQueue : Codable
{
    public var statusChanged:QueueStateChanged
    public var disabledReason:String
    public var gasId:String

    required public init(){}
}

public enum QueueStateChanged : Int, Codable
{
    case Enabled = 1
    case Disabled = 2
}

public class UpdateAgencyMulesoftQueueStateResponse : AgencyMulesoftStatusResponse
{
    required public init(){ super.init() }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
    }
}

public class AgencyMulesoftStatusResponse : Codable
{
    public var status:Bool
    public var messageCount:Int?
    public var lastModified:String

    required public init(){}
}


Swift UpdateAgencyMulesoftQueueState 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/UpdateAgencyMulesoftQueueState HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"StatusChanged":"Enabled","DisabledReason":"String","GasId":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Status":false,"MessageCount":0,"LastModified":"String"}