Create a Crew Maintenance Activity Assignment
    • 06 Jan 2025
    • 1 Minute to read
    • Dark
      Light

    Create a Crew Maintenance Activity Assignment

    • Dark
      Light

    Article summary

    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

    💻 UI Fieldname: CrwaVUuid

    Max length64
    CrwaAccessCode
    string

    💻 UI Fieldname: CrwaAccessCode

    Max length100
    CrwaCrewCode
    string

    💻 UI Fieldname: CrwaCrewCode

    Max length30
    CrwaDataType
    string

    CT: J=Job, G=Overhead, E=Equipment

    💻 UI Fieldname: CrwaDataType

    CrwaJobCompCode
    string Required

    Job company code (typically defaulted from crew)

    💻 UI Fieldname: CrwaJobCompCode

    Max length8
    CrwaValue1
    string Required

    When crwa_data_type=J => Job, When crwa_data_type=G => Department, When crwa_data_type=E => Equipment

    💻 UI Fieldname: CrwaValue1

    Max length30
    CrwaValue2
    string Required

    When crwa_data_type=J => Phase, When crwa_data_type=G => Account, When crwa_data_type=E => Category

    💻 UI Fieldname: CrwaValue2

    Max length30
    CrwaValue3
    string

    When crwa_data_type=J => Category, When crwa_data_type=G => , When crwa_data_type=E => Transaction

    💻 UI Fieldname: CrwaValue3

    Max length30
    CrwaSectorCode
    string

    Used only when crwa_data_type=J

    💻 UI Fieldname: CrwaSectorCode

    Max length10
    CrwaScheduleCode
    string

    Used only when crwa_data_type=J

    💻 UI Fieldname: CrwaScheduleCode

    Max length10
    CrwaWbsvCode1
    string

    💻 UI Fieldname: CrwaWbsvCode1

    Max length60
    CrwaWbsvCode2
    string

    💻 UI Fieldname: CrwaWbsvCode2

    Max length60
    CrwaWbsvCode3
    string

    💻 UI Fieldname: CrwaWbsvCode3

    Max length60
    CrwaWbsvCode4
    string

    💻 UI Fieldname: CrwaWbsvCode4

    Max length60
    CrwaComment
    string

    💻 UI Fieldname: CrwaComment

    Max length200
    CrwaName
    string

    Given name (nickname) for the activity

    💻 UI Fieldname: CrwaName

    Max length100
    CrwaStartDate
    string Required

    Activity start date

    💻 UI Fieldname: CrwaStartDate

    Max length7
    CrwaEndDate
    string

    Activity end date

    💻 UI Fieldname: CrwaEndDate

    Max length7
    CrwaIuCreateDate
    string

    💻 UI Fieldname: CrwaIuCreateDate

    Max length7
    CrwaIuUpdateDate
    string

    💻 UI Fieldname: CrwaIuUpdateDate

    Max length7
    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-01T00: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