Create a Crew Maintenance Activity Assignment
- 25 Sep 2024
- 1 Minute to read
- Print
- DarkLight
Create a Crew Maintenance Activity Assignment
- Updated on 25 Sep 2024
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Post
/hcm-rest-api/rest/1/pyctimecrewactivity
Create Crew Maintenance Activity Assignment
Security
HTTP
Type basic
Basic authentication
Header parameters
Content-Type
string
Exampleapplication/vnd.oracle.adf.resourceItem+json
Body parameters
object
Example{ "CrwaAccessCode": "MASTER", "CrwaCrewCode": "TEST-01", "CrwaDataType": "J", "CrwaJobCompCode": "IA", "CrwaValue1": "IA00001", "CrwaValue2": "01-715", "CrwaValue3": "1000", "CrwaStartDate": "2021-11-02", "CrwaVUuid": "" }
CrwaVUuid
string
CrwaAccessCode
string
CrwaCrewCode
string
CrwaDataType
true
CT: J=Job, G=Overhead, E=Equipment
CrwaJobCompCode
string Required
Job company code (typically defaulted from crew)
CrwaValue1
string Required
When crwa_data_type=J => Job, When crwa_data_type=G => Department, When crwa_data_type=E => Equipment
CrwaValue2
string Required
When crwa_data_type=J => Phase, When crwa_data_type=G => Account, When crwa_data_type=E => Category
CrwaValue3
string
When crwa_data_type=J => Category, When crwa_data_type=G => , When crwa_data_type=E => Transaction
CrwaSectorCode
string
Used only when crwa_data_type=J
CrwaScheduleCode
string
Used only when crwa_data_type=J
CrwaWbsvCode1
string
CrwaWbsvCode2
string
CrwaWbsvCode3
string
CrwaWbsvCode4
string
CrwaComment
string
CrwaName
string
Given name (nickname) for the activity
CrwaStartDate
date Required
Activity start date
CrwaEndDate
date
Activity end date
CrwaIuCreateDate
date
CrwaIuUpdateDate
date
Responses
201
Created
Headers
Content-Type
string
Exampleapplication/vnd.oracle.adf.resourceitem+json
{
"CrwaVUuid": "1E03494BC6356510E0630B811DACDF31",
"CrwaAccessCode": "MASTER",
"CrwaCrewCode": "TEST-01",
"CrwaDataType": "J",
"CrwaJobCompCode": "IA",
"CrwaValue1": "IA00001",
"CrwaValue2": "0715-01-01T12:00:00Z",
"CrwaValue3": "1000",
"CrwaSectorCode": null,
"CrwaScheduleCode": null,
"CrwaWbsvCode1": null,
"CrwaWbsvCode2": null,
"CrwaWbsvCode3": null,
"CrwaWbsvCode4": null,
"CrwaComment": null,
"CrwaName": null,
"CrwaStartDate": "2021-11-02",
"CrwaEndDate": null,
"CrwaIuCreateDate": null,
"CrwaIuUpdateDate": null,
"links": [
{
"rel": "self",
"href": "http://127.0.0.1:7101/hcm-rest-api/rest/1/pyctimecrewactivity/1E03494BC6356510E0630B811DACDF31",
"name": "pyctimecrewactivity",
"kind": "item"
},
{
"rel": "canonical",
"href": "http://127.0.0.1:7101/hcm-rest-api/rest/1/pyctimecrewactivity/1E03494BC6356510E0630B811DACDF31",
"name": "pyctimecrewactivity",
"kind": "item"
}
]
}
object