Zum Inhalt springen

A pessoa dá "ciente" no espelho fechado

POST/api/time-tracking/months/acknowledge

Auth
Token erforderlich
API-Schlüssel:
Kein API-Schlüssel möglich
X-CommunityId
X-CommunityId Sende die X-CommunityId der Community, in der die Operation stattfindet.
Die Beschreibungen der Endpoints stammen aus der API-Spezifikation und sind vorerst auf Portugiesisch. Die Oberfläche drumherum ist übersetzt.

Só a própria pessoa, num mês fechado em que ela está. Idempotente por fechamento: repetir devolve o mesmo momento (200, `replayed: true`).

Header

NameTypBeschreibung
X-CommunityIdoptionalstring (uuid)ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade.

Request-Body application/json

NameTypBeschreibung
spaceIdoptionalstring (uuid)
monthPflichtstring

Antworten

StatusBeschreibung
200Já estava ciente (`replayed: true`).
201Ciente registrado.
401Token ausente, inválido ou expirado; token de outra comunidade (o `X-CommunityId` ou o `communityId` do corpo não é o do token); token antigo ou de uma sessão encerrada (troca de senha, convite aceito). Nesses casos a mensagem pede para entrar de novo (`auth.signInAgain`).
404Recurso não encontrado.
409O mês não está fechado (`monthNotClosed`).

curl-Beispiel

curl -X POST "https://api.memberfy.net/api/time-tracking/months/acknowledge" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-CommunityId: $COMMUNITY_ID" \
  -H "Content-Type: application/json" \
  -d '{"month":"string"}'