Submit Feature Flag data
Update / insert Feature Flag data.
Feature Flags are identified by their ID, and existing Feature Flag data for the same ID will be replaced if it exists and the updateSequenceId of existing data is less than the incoming data.
Submissions are performed asynchronously. Submitted data will eventually be available in Jira; most updates are available within a short period of time, but may take some time during peak load and/or maintenance times. The getFeatureFlagById operation can be used to confirm that data has been stored successfully (if needed).
In the case of multiple Feature Flags being submitted in one request, each is validated individually prior to submission. Details of which Feature Flags failed submission (if any) are available in the response object.
Request body
Example request
{
"properties": {
"accountId": "account-234",
"projectId": "project-123"
},
"flags": [
{
"schemaVersion": "1.0",
"id": "111-222-333",
"key": "my-awesome-feature",
"updateSequenceId": 1523494301448,
"displayName": "Enable awesome feature",
"issueKeys": [
"ISSUE-123"
],
"associations": [
{
"associationType": "issueIdOrKeys",
"values": [
"ABC-123",
"ABC-456"
]
}
],
"summary": {
"url": "https://example.com/project/feature-123/summary",
"status": {
"defaultValue": "Disabled",
"rollout": {
"percentage": 80
}
},
"lastUpdated": "2018-01-20T23:27:25.000Z"
},
"details": [
{
"url": "https://example.com/project/feature-123/production",
"lastUpdated": "2018-01-20T23:27:25.000Z",
"environment": {
"name": "prod-us-west",
"type": "production"
},
"status": {
"defaultValue": "Disabled",
"rollout": {
"percentage": 80
}
}
}
]
}
],
"providerMetadata": {
"product": "Atlassian Release Platform 2.1.0"
}
}Response
Submission accepted. Each submitted Feature Flag that is of a valid format will be eventually available in Jira.
Details of which Feature Flags were submitted and which failed submission (due to data format problems etc.) are available in the response object.
Example response
{
"acceptedFeatureFlags": [
"111-222-333",
"444-555-666"
],
"unknownIssueKeys": [
"ISSUE-123"
],
"unknownAssociations": [
{
"associationType": "issueIdOrKeys",
"values": [
"ABC-123",
"ABC-456"
]
}
]
}