Skip to content
Pasqal Documentation

Partial Use Case Update

PATCH
/api/v1/use-cases/{use_case_id}

Updates a use-case, possibly partially.

Args: use_case_id: ID of the Use case to update. use_case: The use-case fields to update. credential: The auth info used to check permissions. credential_acl: contains the projects accessible by the user

Returns: QueryResults: The resulting updated use case.

Parameters

Path Parameters

use_case_id
required
Use Case Id
string format: uuid

Request Body required

UpdateUseCaseSchema

Schema to parse request for the creation of a use-case.

object
title
Title
string
validation_status
Validation Status
string
summary
Summary
string
questionnaire_id
Questionnaire Id
integer
answers
Answers
object

Responses

200

Successful Response

NonPaginatedResponse

Represents a response with either a list of items or a single item in a single page.

Generic Parameters: - A (TypeVar): The type bound to this class, which can be a single BaseModel, a list of BaseModels, or None.

Usage: - To respond with an unpaginated list of FooResponse items from an API endpoint, ensure that your function returns NonPaginatedResponse[List[FooResponse]].

- To respond with a single `FooResponse` item from an API endpoint,
  make sure that your function returns `NonPaginatedResponse[FooResponse]`
  and that Python recognizes it.
object
data
Any of:
Array<object>
BaseModel
object

422

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string