POST api/v1/infrastructure/tenant/{tenantid}

Updates existing tenant

Request Information

URI Parameters

NameDescriptionTypeAdditional information
tenantid

Unique identifier of tenant

globally unique identifier

Required

Body Parameters

Update tenant command

Com.Healthbridge.Core.CommonDomain.Interface.Commands.UpdateTenant
NameDescriptionTypeAdditional information
TenantVo

Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects.TenantVo

None.

CorrelationIds

Collection of string

None.

OriginatedSystem

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TenantVo": {
    "TenantId": "59602b66-0c2d-4d0c-bda3-a044401a310d",
    "TenantXRef": "sample string 2",
    "Description": "sample string 3"
  },
  "CorrelationIds": [
    "sample string 1",
    "sample string 2"
  ],
  "OriginatedSystem": "sample string 1"
}

application/xml, text/xml

Sample:
<UpdateTenant xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Com.Healthbridge.Core.CommonDomain.Interface.Commands">
  <CorrelationIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://mpsapi.healthbridge.com/platform/core/v1/command/">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </CorrelationIds>
  <OriginatedSystem xmlns="http://mpsapi.healthbridge.com/platform/core/v1/command/">sample string 1</OriginatedSystem>
  <TenantVo xmlns:d2p1="http://mpsapi.healthbridge.com/platform/commondomain/v1/tenant/">
    <d2p1:Description>sample string 3</d2p1:Description>
    <d2p1:TenantId>59602b66-0c2d-4d0c-bda3-a044401a310d</d2p1:TenantId>
    <d2p1:TenantXRef>sample string 2</d2p1:TenantXRef>
  </TenantVo>
</UpdateTenant>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateTenant'.

Response Information

Resource Description

Tenant NodeId

Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects.RestApiResultOfSystem.Guid
NameDescriptionTypeAdditional information
Sucess

boolean

None.

ResponseCode

integer

None.

ResponseMessage

string

None.

Data

globally unique identifier

None.

Links

Collection of Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects.RestApiLink

None.

Response Formats

application/json, text/json

Sample:
{
  "Sucess": true,
  "ResponseCode": 2,
  "ResponseMessage": "sample string 3",
  "Data": "4b24bee3-3d3a-4d2b-973f-b076d3618780",
  "Links": [
    {
      "Rel": "sample string 1",
      "HRef": "sample string 2"
    },
    {
      "Rel": "sample string 1",
      "HRef": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<RestApiResultOfguid xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects">
  <Data>4b24bee3-3d3a-4d2b-973f-b076d3618780</Data>
  <Links>
    <RestApiLink>
      <HRef>sample string 2</HRef>
      <Rel>sample string 1</Rel>
    </RestApiLink>
    <RestApiLink>
      <HRef>sample string 2</HRef>
      <Rel>sample string 1</Rel>
    </RestApiLink>
  </Links>
  <ResponseCode>2</ResponseCode>
  <ResponseMessage>sample string 3</ResponseMessage>
  <Sucess>true</Sucess>
</RestApiResultOfguid>