POST Setup/BusinessUnit?validateOnly={validateOnly}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
validateOnly

boolean

Default value is False

Body Parameters

BusinessUnitDTO
NameDescriptionTypeAdditional information
BUID

integer

None.

OUID

integer

None.

BUName

string

None.

GLCode

string

None.

EventStartUtc

date

None.

EventStopUtc

date

None.

EventNextStopUtc

date

None.

Comments

string

None.

Props

Collection of Object

None.

Addresses

AddressesDTO

None.

CommunicationMethods

CommunicationMethodsDTO

None.

RecordState

RecordState

None.

Created

AuditDataDTO

None.

LastUpdated

AuditDataDTO

None.

IsPartialData

boolean

None.

Summary

string

None.

OrganizationalUnitName

string

None.

BusinessUnitStartDayOfWeek

integer

None.

TimeZone

string

None.

AlternativeGLCodes

Collection of AlternativeDTO

None.

businessUnitSettingDTOs

Collection of BusinessUnitSettingDTO

None.

Type

BusinessUnitType

None.

Request Formats

application/json, text/json

Sample:
{
  "buid": 1,
  "ouid": 2,
  "buName": "sample string 3",
  "glCode": "sample string 4",
  "eventStartUtc": "2024-12-04T08:04:50.625108+00:00",
  "eventStopUtc": "2024-12-04T08:04:50.625108+00:00",
  "eventNextStopUtc": "2024-12-04T08:04:50.625108+00:00",
  "comments": "sample string 8",
  "recordState": 1,
  "created": {
    "dateUtc": "2024-12-04T08:04:50.6407936+00:00",
    "userName": "sample string 2",
    "summary": "sample string 2 on 12/4/2024 8:04:50 AM"
  },
  "lastUpdated": {
    "dateUtc": "2024-12-04T08:04:50.6407936+00:00",
    "userName": "sample string 2",
    "summary": "sample string 2 on 12/4/2024 8:04:50 AM"
  },
  "isPartialData": true,
  "summary": "sample string 3",
  "organizationalUnitName": "sample string 10",
  "businessUnitStartDayOfWeek": 11,
  "timeZone": "sample string 12",
  "alternativeGLCodes": [
    {
      "id": 1,
      "name": "sample string 2",
      "details": "sample string 3",
      "description": "sample string 4"
    },
    {
      "id": 1,
      "name": "sample string 2",
      "details": "sample string 3",
      "description": "sample string 4"
    }
  ],
  "businessUnitSettingDTOs": [
    {
      "settingID": 1,
      "buid": 2,
      "name": "sample string 3",
      "props": [],
      "recordState": 1,
      "created": {
        "dateUtc": "2024-12-04T08:04:50.6407936+00:00",
        "userName": "sample string 2",
        "summary": "sample string 2 on 12/4/2024 8:04:50 AM"
      },
      "lastUpdated": {
        "dateUtc": "2024-12-04T08:04:50.6407936+00:00",
        "userName": "sample string 2",
        "summary": "sample string 2 on 12/4/2024 8:04:50 AM"
      },
      "summary": "sample string 3",
      "defaultAccommodationFunder": "",
      "feesFunder": "",
      "defaultFundingFunder": ""
    },
    {
      "settingID": 1,
      "buid": 2,
      "name": "sample string 3",
      "props": [],
      "recordState": 1,
      "created": {
        "dateUtc": "2024-12-04T08:04:50.6407936+00:00",
        "userName": "sample string 2",
        "summary": "sample string 2 on 12/4/2024 8:04:50 AM"
      },
      "lastUpdated": {
        "dateUtc": "2024-12-04T08:04:50.6407936+00:00",
        "userName": "sample string 2",
        "summary": "sample string 2 on 12/4/2024 8:04:50 AM"
      },
      "summary": "sample string 3",
      "defaultAccommodationFunder": "",
      "feesFunder": "",
      "defaultFundingFunder": ""
    }
  ],
  "type": 1
}

application/xml, text/xml

Sample:
<BusinessUnitDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProcuraGroup.Models">
  <Addresses>
    <List />
    <PartialData>FullData</PartialData>
  </Addresses>
  <AlternativeGLCodes>
    <AlternativeDTO>
      <Description>sample string 4</Description>
      <Details>sample string 3</Details>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </AlternativeDTO>
    <AlternativeDTO>
      <Description>sample string 4</Description>
      <Details>sample string 3</Details>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </AlternativeDTO>
  </AlternativeGLCodes>
  <BUID>1</BUID>
  <BUName>sample string 3</BUName>
  <BusinessUnitStartDayOfWeek>11</BusinessUnitStartDayOfWeek>
  <Comments>sample string 8</Comments>
  <CommunicationMethods>
    <List />
    <PartialData>FullData</PartialData>
    <PhoneNumbers />
  </CommunicationMethods>
  <Created>
    <DateUtc>2024-12-04T08:04:50.6407936+00:00</DateUtc>
    <UserName>sample string 2</UserName>
  </Created>
  <EventNextStopUtc>2024-12-04T08:04:50.625108+00:00</EventNextStopUtc>
  <EventStartUtc>2024-12-04T08:04:50.625108+00:00</EventStartUtc>
  <EventStopUtc>2024-12-04T08:04:50.625108+00:00</EventStopUtc>
  <GLCode>sample string 4</GLCode>
  <IsPartialData>true</IsPartialData>
  <LastUpdated>
    <DateUtc>2024-12-04T08:04:50.6407936+00:00</DateUtc>
    <UserName>sample string 2</UserName>
  </LastUpdated>
  <OUID>2</OUID>
  <OrganizationalUnitName>sample string 10</OrganizationalUnitName>
  <Props xmlns:d2p1="http://schemas.datacontract.org/2004/07/ProcuraGroup.Common" i:nil="true" />
  <RecordState>Active</RecordState>
  <TimeZone>sample string 12</TimeZone>
  <Type>RM</Type>
  <businessUnitSettingDTOs>
    <BusinessUnitSettingDTO>
      <BUID>2</BUID>
      <Created>
        <DateUtc>2024-12-04T08:04:50.6407936+00:00</DateUtc>
        <UserName>sample string 2</UserName>
      </Created>
      <LastUpdated>
        <DateUtc>2024-12-04T08:04:50.6407936+00:00</DateUtc>
        <UserName>sample string 2</UserName>
      </LastUpdated>
      <Name>sample string 3</Name>
      <Props xmlns:d4p1="http://schemas.datacontract.org/2004/07/ProcuraGroup.Common" />
      <RecordState>Active</RecordState>
      <SettingID>1</SettingID>
    </BusinessUnitSettingDTO>
    <BusinessUnitSettingDTO>
      <BUID>2</BUID>
      <Created>
        <DateUtc>2024-12-04T08:04:50.6407936+00:00</DateUtc>
        <UserName>sample string 2</UserName>
      </Created>
      <LastUpdated>
        <DateUtc>2024-12-04T08:04:50.6407936+00:00</DateUtc>
        <UserName>sample string 2</UserName>
      </LastUpdated>
      <Name>sample string 3</Name>
      <Props xmlns:d4p1="http://schemas.datacontract.org/2004/07/ProcuraGroup.Common" />
      <RecordState>Active</RecordState>
      <SettingID>1</SettingID>
    </BusinessUnitSettingDTO>
  </businessUnitSettingDTOs>
</BusinessUnitDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/x-compressed-json

Sample:
��T�N�0���WRp�%��
��K�
	ԃo+�Ď�
�T�2|��:��hZ�	��֞}�w&y~|��a�$K���:�C�9��9Q�9����B6���\���4^���nj2b'�(n��wR���|s'ގxg���S����V����:���C���XI��5d(�ML��`Ő���wާTl��b]U�N��� ���-?"���'l�\8���Q��U"�	,E[��N�-Ǝ�V��"�k���"OwX9��9�U��'&g�+�[R�dAU���
��="G����ᱷ(i}3esg�ek��B勾hטˬ*=����_�>��@$�wy��.�z>���on#?������ݿOg��%�D�c7�#k�TZ��t�G��y�ﯨ��m��I���R�^����[

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.