2024-06-25 22:45:41 +09:00
|
|
|
import { apiRequestPost } from 'flavours/glitch/api';
|
2024-05-23 18:50:13 +09:00
|
|
|
import type { ApiRelationshipJSON } from 'flavours/glitch/api_types/relationships';
|
|
|
|
|
|
|
|
export const apiSubmitAccountNote = (id: string, value: string) =>
|
2024-06-25 22:45:41 +09:00
|
|
|
apiRequestPost<ApiRelationshipJSON>(`v1/accounts/${id}/note`, {
|
|
|
|
data: {
|
|
|
|
comment: value,
|
|
|
|
},
|
2024-05-23 18:50:13 +09:00
|
|
|
});
|