POST PlanCare2Api/CustomBuildingBlocks/Values

Insert CustomBuildingBlockValue.

Request Information

URI Parameters

None.

Body Parameters

CustomBuildingBlockValue.

CustomBuildingBlockValue
Name Description Type Additional information
Id

Id.

integer

-

CustomBuildingBlockGuid

CustomBuildingBlockGuid.

globally unique identifier

-

RelationId

RelationId.

integer

-

RelationById

RelationById.

integer

-

ChangedOn

ChangedOn.

date

-

TextValue

TextValue.

string

-

NumberValue

NumberValue.

decimal number

Nullable

DateTimeValue

DateTimeValue.

date

Nullable

ValuePossibilityGuid

Guid of the selected ValuePossibility (SingleChoice).

globally unique identifier

Nullable

ValuePossibilityGuids

Guids of the selected ValuePossibilities (MultipleChoice).

Collection of globally unique identifier

-

Source

Source.

string

-

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CustomBuildingBlockGuid": "cc7522fd-f9e4-49b9-b5e7-4cdc917fa4c3",
  "RelationId": 3,
  "RelationById": 4,
  "ChangedOn": "2026-05-26T23:13:14.2126055+02:00",
  "TextValue": "sample string 6",
  "NumberValue": 1.0,
  "DateTimeValue": "2026-05-26T23:13:14.2126055+02:00",
  "ValuePossibilityGuid": "fb0e5140-c54b-4920-ad9a-b1773796579a",
  "ValuePossibilityGuids": [
    "87d1c082-f7c5-430f-89db-3cd9813e7857",
    "623c3a89-516c-4f32-a1df-d03ee69a78bb"
  ],
  "Source": "sample string 7"
}

application/xml, text/xml

Sample:
<CustomBuildingBlockValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface.BuildingBlock">
  <ChangedOn>2026-05-26T23:13:14.2126055+02:00</ChangedOn>
  <CustomBuildingBlockGuid>cc7522fd-f9e4-49b9-b5e7-4cdc917fa4c3</CustomBuildingBlockGuid>
  <DateTimeValue>2026-05-26T23:13:14.2126055+02:00</DateTimeValue>
  <Id>1</Id>
  <NumberValue>1</NumberValue>
  <RelationById>4</RelationById>
  <RelationId>3</RelationId>
  <Source>sample string 7</Source>
  <TextValue>sample string 6</TextValue>
  <ValuePossibilityGuid>fb0e5140-c54b-4920-ad9a-b1773796579a</ValuePossibilityGuid>
  <ValuePossibilityGuids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>87d1c082-f7c5-430f-89db-3cd9813e7857</d2p1:guid>
    <d2p1:guid>623c3a89-516c-4f32-a1df-d03ee69a78bb</d2p1:guid>
  </ValuePossibilityGuids>
</CustomBuildingBlockValue>

Response Information

Resource Description

HttpResponseMessage
Name Description Type Additional information
Version

Version

-

Content

HttpContent

-

StatusCode

HttpStatusCode

-

ReasonPhrase

string

-

Headers

Collection of Object

-

RequestMessage

HttpRequestMessage

-

IsSuccessStatusCode

boolean

-