PATCH
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
test-cases
/
{testCaseId}
/
elements
/
{elementId}
Update a test case element
curl --request PATCH \
  --url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/test-cases/{testCaseId}/elements/{elementId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "locatorLine": "<string>"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "index": 123,
  "interaction": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "action": "EXTRACT",
    "calledWith": "<string>",
    "testCaseElementId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "assertion": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "expectation": "VISIBLE",
    "calledWith": "<string>",
    "testCaseElementId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "selectors": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "index": 123,
      "selector": "<string>",
      "selectorType": "TEXT",
      "options": {},
      "testCaseElementId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "ignoreFailure": true
}

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string<uuid>
required

The ID of the test target

testCaseId
string<uuid>
required

The ID of the test case

elementId
string<uuid>
required

The ID of the test case element

Body

application/json

Response

200
application/json

Test case element updated successfully

The response is of type object.