Skip to content

Updating documentation for whoami and fixing baseurl to real one#653

Closed
nuclearcat wants to merge 1 commit intokernelci:mainfrom
nuclearcat:docs-api-whoami
Closed

Updating documentation for whoami and fixing baseurl to real one#653
nuclearcat wants to merge 1 commit intokernelci:mainfrom
nuclearcat:docs-api-whoami

Conversation

@nuclearcat
Copy link
Member

No description provided.

PATCH /node/{node_id} endpoint:
- Fetches the existing node from DB
- Merges only the fields provided in the request (exclude_unset=True)
- Validates the node subtype via parse_node_obj
- Validates state transitions (same logic as PUT)
- Resets processed_by_kcidb_bridge on update (same logic as PUT)
- Publishes CloudEvent (same as PUT)

Example:
curl -s -X PATCH -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ...' \
     -d '{"state":"done","result":"pass"}' \
    'https://api.kernelci.org/latest/node/69c24ea76d1f8ea2ada0f485'

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant