--- title: "Create, Update Profileset" slug: "create-update-profileset" updated: 2026-03-04T11:07:29Z published: 2026-03-04T11:07:29Z canonical: "docs.safran.com/create-update-profileset" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.safran.com/llms.txt > Use this file to discover all available pages before exploring further. # Create, Update Profileset ## Create/update Profileset ### /v1/profileset Create or update Profileset Maintain Profilesets ### Example for calling: http://server/v1/profileset http://server/v1/profileset?owner=SAFRANSA Request Body = {...} see [request fields](/v1/docs/create-update-profileset#request-fields) below | Name | Type | Description | Notes | | --- | --- | --- | --- | | owner | string | Owner of the profileset to be updated | Related to [Application Settings](/v1/docs/safran-project-integration-api-application-settings) in Application Settings | ### Allowed Methods: [POST] API Controller: **Profileset** ### Description: Create or update profileset is done in on single Web Service call with an indicator to specify Create or Update. ### Request Fields: | Name | Type | Description | Notes | | --- | --- | --- | --- | | create_profileset | [create_profileset[]](/docs/create-update-profileset#profileset-create-request-fields-create-profileset) | collection of profileset to be created/updated | Head element not specified – see example | #### create_profileset | Name | Type | Description | | --- | --- | --- | | RowID | integer | Identifying a row in this request that lines up with the response | | ProfilesetAction | string | Specification of action: “C”reate, “U”pdate | | UpdateIfExists | boolean | UpdateIfExists flag for Create | | Profileset | [Profileset](/v1/docs/safran-project-integration-api-profileset) | Profileset object (almost the same structure as GET object. The profile part consist of [create_profile](/v1/docs/create-update-profileset#create_profile) object) | #### create_profile | **Name** | **Type** | **Description** | **Notes** | | --- | --- | --- | --- | | Id | integer | Unique profile Id | | | Name | string | The profile name | | | ProfileInterval | object[] | See [profileinterval](/docs/create-update-profileset#profileinterval) | | | RowID | integer | Identifying a row in this request that lines up with the response | | 1. When creating a new profileset, the following fields should be set: 1. "ProfilesetAction" = Create 2. "RowID" = 1 3. "UpdateIfExists" = false 4. "Name" = 5. "Owner" = 6. "Profile" = List of Profiles, or empty 2. "Update if exists” 1. When a create request is sent to the system, it checks whether the specified "Profileset" already exists.. 2. If the "Profileset" does not exist, it will be created. 3. If "Profileset" does exist and "UpdateIfExists" = false, the system will return an error. 4. If "Profileset" already exists and "UpdateIfExists" = true and the system will update the existing record. 3. Update of existing records. 1. When updating an existing record, the API checks whether the "Profileset" and "Profile" are currently in use: 1. If not in use, the details will be updated. 2. If in use and you are updating only the "Profileset", the update is blocked and an error is returned. 3. If in use and you attempt to update an existing in use Profile, the update is blocked and an error is returned. 4. If in use and you insert a new "Profile", the new "Profile" and any associated "Profile Interval" entries will be added. 2. "Profile Interval" 1. It is not permitted to add new interval to an in use profile, such will result in an error. 2. It is possible to update value_y on existing profile intervals, identified by the Profileset_Id, Profile_Id and value_x. 3. Other entries will always be attempted to be added. If a "Profile Interval" already exists, an error will be returned. #### Note A profile is considered ‘In use’ if it is linked to one or more historical records. ### Response Fields: #### Create_Profileset_response[] Collection of Create_Profileset_response objects | Name | Type | Description | Notes | | --- | --- | --- | --- | | RowID | integer | Corresponds to the RowID in the request | | | Result | byte | S(uccess) or F(ail) indicating if the requested action was successfully executed | | | Message | string | Empty if success; error message if the requested action failed. | | | MessageId | integer | MessageId: Identifies error message | | | Profileset_Id | integer | Safran Profileset ID | | | Profileset_Name | string | Safran Profileset Name | | | Profile_Id | object[] | List of new or updated Profiles, see [Create_Profile_Response](/v1/docs/create-update-profileset#create_profile_response) | | #### Create_Profile_Response | Name | Type | Description | Notes | | --- | --- | --- | --- | | RowID | integer | Corresponds to the RowID in the request | | | Profile_Id | integer | New or updated Profile ID | | ### Sample Create Call and Response **Show Call Sample** json result ``` [ { "rowid": 1, "ProfilesetAction": "C", "UpdateIfExists": false, "name": "API Test Engine Maintenance", "owner": "SAFRANSA", "profile": [ { "name": "Profile Test 1", "rowid": 2, "Profileinterval": [ { "value_x": 1, "value_y": 2 } ] } ] } ] ``` **Show Response Sample** json result ``` [ { "profileset_Id": 154, "profileset_Name": "API Test Engine Maintenance 001", "profile": [ { "profile_Id": 1, "rowid": 2 } ], "rowid": 1, "result": "S", "message": "", "messageId": 0 } ] ```