POST api/v1/code/sourcecode
Add a new source code
Request Information
URI Parameters
None.
Body Parameters
Source code object that needs to be added
SourceCode| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
Required String length: inclusive between 0 and 20 |
|
| Description | string |
Required String length: inclusive between 0 and 80 |
|
| SourceGroup | string |
String length: inclusive between 0 and 20 |
|
| Medium | string |
String length: inclusive between 0 and 20 |
|
| Retired | boolean |
None. |
|
| LastUpdated | date |
None. |
|
| LastUpdatedBy | string |
String length: inclusive between 0 and 200 |
|
| Created | date |
None. |
|
| CreatedBy | string |
String length: inclusive between 0 and 200 |
Request Formats
application/json, text/json
Sample:
{
"Code": "sample string 1",
"Description": "sample string 2",
"SourceGroup": "sample string 3",
"Medium": "sample string 4",
"Retired": true,
"LastUpdated": "2026-02-04T01:59:51.945",
"LastUpdatedBy": "sample string 5",
"Created": "2026-02-04T01:59:51.945",
"CreatedBy": "sample string 6"
}
application/xml, text/xml
Sample:
<SourceCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DPCSWS.Models"> <Code>sample string 1</Code> <Created>2026-02-04T01:59:51.9459897+00:00</Created> <CreatedBy>sample string 6</CreatedBy> <Description>sample string 2</Description> <LastUpdated>2026-02-04T01:59:51.9459897+00:00</LastUpdated> <LastUpdatedBy>sample string 5</LastUpdatedBy> <Medium>sample string 4</Medium> <Retired>true</Retired> <SourceGroup>sample string 3</SourceGroup> </SourceCode>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.